package net.wang.spring.data.mongo.domain;

import lombok.Data;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@Document
public class Role {

    @Id
    private String id = new ObjectId().toString();

    private String name;
}
